<?php
namespace Api\Controller;

class SignController extends ApiController {
    
    public function check() {
        !api_login() && response(-94);
        !passed_login() && response(-95);
        !only_login() && response(-96);
        $filters['create_time'][] = array('egt', strtotime(date('Y-m-d 00:00:00')));
        $filters['create_time'][] = array('elt', strtotime(date('Y-m-d 23:59:59')));
        $filters['uid'] = array('eq', API_UID);
        $info = M('member_sign')->where($filters)->find();
        $info ? response(1, null, '已签到') : response(-1, null, '未签到');
    }
}
?>